<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'spedt.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	<SCRIPT src="js/jquery.js" type="text/javascript"></SCRIPT>
<script type="text/javascript">			
			function doCheck(){
			    
                        var relateName = document.AddForm.relateName.value;   
                        var relateAddress = document.AddForm.relateAddress.value; 
                         var recommendName = document.AddForm.recommendName.value;   
                        var recommendAddress = document.AddForm.recommendAddress.value;   
                        if(relateName==""){
	                        alert("相关医院名称不能为空！");
	                        return false;
                        }
                        
                        if(relateAddress==""){
	                        alert("相关医院地址不能为空！");
	                        return false;
                        }
                        
                         if(recommendName==""){
	                        alert("推荐医院名称不能为空！");
	                        return false;
                        }
                        
                        if(recommendAddress==""){
	                        alert("推荐医院地址不能为空！");
	                        return false;
                        }
                         return true;
                        }
                        </script>
	</head>


	<body>
		<center>
		<form action="friendlink.do?method=addLink" method="post" name="AddForm">
			<TABLE border=0 cellSpacing=1 cellPadding=0 width=800 bgColor=#9bc8eb>
				<TBODY>
					<TR>
						<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center width=200
							align=right>
							相关医院名称：

						</TD>
						<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center width=341
							colSpan=2 align=left>
							<INPUT class=jyts_bk2  type=text name="relateName">
						</TD>
					</TR>

					<TR>
						<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center width=200
							align=right>
							相关医院链接地址：

						</TD>
						<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center width=341
							colSpan=2 align=left>
							<INPUT class=jyts_bk2  type=text name="relateAddress">
						</TD>
					</TR>
					<TR>
						<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center width=200
							align=right>
							推荐医院名称：

						</TD>
						<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center width=341
							colSpan=2 align=left>
							<INPUT class=jyts_bk2  type=text name="recommendName">
						</TD>
					</TR>
					<TR>
						<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center width=200
							align=right>
							推荐医院链接地址：

						</TD>
						<TD class=jj_l_5 bgColor=#eefbfe height=33 vAlign=center width=341
							colSpan=2 align=left>
							<INPUT class=jyts_bk2  type=text name="recommendAddress">
						</TD>
					</TR>

					<TR align="center">
						<TD class=jj_r_5 bgColor=#eefbfe height=33 vAlign=center width=341
							align=center colspan="3">
							<input type="submit" value="保存" onclick="return doCheck()">
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			</form>
		</center>
	</body>
</html>
